<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <script src="/skw/js/common/header.js"></script>
    <script src="/skw/js/plugins/layer/layer.js"></script>
    <!-- Chosen -->
    <link href="/skw/css/plugins/chosen/chosen.css" rel="stylesheet">
    <script src="/skw/js/plugins/chosen/chosen.jquery.js"></script>
    <!-- iCheck -->
    <link href="/skw/css/plugins/iCheck/custom.css" rel="stylesheet">
    <script src="/skw/js/plugins/iCheck/icheck.min.js"></script>
    <script src="/skw/js/business/system/menu-edit.js"></script>
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>添加/修改菜单</h5>
                </div>
                <div class="ibox-content">
                    <form method="post" class="form-horizontal" id="myForm">
                        <input type="hidden" name="id" id="menuId">
                        <input type="hidden" name="parentValue" id="parentValue">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">菜单名称：</label>
                            <div class="col-sm-9">
                                <input type="text" name="name" class="form-control" placeholder="请输入菜单名称">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">菜单类型：</label>
                            <div class="col-sm-9">
                                <div class="radio i-checks">
                                    <label>
                                        <input type="radio" value="1" name="type" checked> <i></i> 菜单</label>
                                    <label>
                                        <input type="radio" value="2" name="type"> <i></i> 页面</label>
                                    <label>
                                        <input type="radio" value="3" name="type"> <i></i> 功能</label>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">菜单URL：</label>
                            <div class="col-sm-9">
                                <input type="text" name="funUrl" class="form-control" placeholder="请输入菜单URL">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">排序：</label>
                            <div class="col-sm-9">
                                <input type="number" name="sort" class="form-control" placeholder="请输入排序">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">样式类：</label>
                            <div class="col-sm-9">
                                <input type="text" name="className" class="form-control" placeholder="请输入样式类">
                            </div>
                        </div>
                        <div class="form-group" id="parentId-css" hidden>
                            <label class="col-sm-3 control-label">父级菜单：</label>
                            <div class="col-sm-9">
                                <select data-placeholder="请选择父级菜单" class="chosen-select" style="width:550px;"
                                        tabindex="4" name="parentId" id="parentId">
                                    <option value="" disabled>请选择父级菜单</option>
                                </select>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <a class="btn btn-primary" id="btnSave">保存</a>
                                <a class="btn btn-info" onclick="goBack()">返回</a>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
</body>